
const TokenKey = 'Reception-Token'
const NameKey = 'Reception-Name'
const PhotoKey = 'Reception-Photo'

export function getToken() {
  return JSON.parse(localStorage.getItem(TokenKey))
}

export function setToken(token) {
  localStorage.setItem(TokenKey, JSON.stringify(token))
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getName() {
  return JSON.parse(localStorage.getItem(NameKey))
}

export function setName(name) {
  localStorage.setItem(NameKey, JSON.stringify(name))
}

export function removeName() {
  return localStorage.removeItem(NameKey)
}

export function getPhoto() {
  return JSON.parse(localStorage.getItem(PhotoKey))
}

export function setPhoto(photo) {
  localStorage.setItem(PhotoKey, JSON.stringify(photo))
}

export function removePhoto() {
  return localStorage.removeItem(PhotoKey)
}
